import React, { Component } from 'react';
import styles from './Success.less';
import {Button} from "antd";
import router from 'umi/router';

class SuccessPage extends Component {

  componentDidMount() {

  }

  toMYOrders = () =>{
    router.push("/demo/orderList");
  }

  render(){

    return(
      <div className={styles.main}>
        <img alt="seccess" src={require("../../assets/success.png")} />
        <br/>
        <span className={styles.successText}>提交成功</span>
        <br/>
        <span>您的订单已经提交成功，请耐心等待商家发货。</span>
        <br/>
        <Button className={styles.successButton} type="primary" onClick={this.toMYOrders}>
          返回我的订单
        </Button>
      </div>
    )
  }
}
export default SuccessPage;
